package com.wtwd.device.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.device.model.entity.AppVersion;
import com.wtwd.device.model.vo.AppVersionVo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author mjy
 * @date 2021/11/09
 * @description
 */
public interface AppVersionService {

    /**
     * 根据app名称全模糊查询
     *
     * @param appName
     * @param page
     * @return
     */
    IPage<AppVersionVo> getPageAppVersionByLikeNameNotInType(String appName,Integer type ,Page<Object> page);

    /**
     * 条件获取appVersion版本记录(精确查询，时间除外)
     * @param searchVersion
     * @return
     */
    List<AppVersion> getAppVersionByConditions(AppVersion searchVersion);

    /**
     * 添加版本记录(首次添加，更新时间默认为0)
     * @param appVersion
     * @return
     */
    Integer addAppVersion(AppVersion appVersion);

    Integer updateAppVersion(AppVersion appVersion);

    Integer bathAddAppVersion(ArrayList<AppVersion> appVersions);
}
